package wordroid.business;

import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.util.Log;
import java.util.ArrayList;
import wordroid.activitys.Main;
import wordroid.database.DataAccess;
import wordroid.model.WordList;

public class makeNotify extends BroadcastReceiver
{
  public void onReceive(Context paramContext, Intent paramIntent)
  {
    if (paramIntent.getAction().equals("android.intent.action.BOOT_COMPLETED"))
      new OperationOfBooks().setNotify(paramContext.getSharedPreferences("wordroid.model_preferences", 0).getString("time", "18:00 下午"), paramContext);
  //  do
   //   label39: return;
    while ((!(paramIntent.getAction().equals("shownotify"))) || (!(paramContext.getSharedPreferences("wordroid.model_preferences", 0).getBoolean("notify", false))));
 //   ArrayList localArrayList = new DataAccess(paramContext).QueryList(null, null);
    int i = 0;
    for (int j = 0; ; ++j)
    {
  //    if (j >= localArrayList.size());
      while (true)
      {
        if (i != 0);
        NotificationManager localNotificationManager = (NotificationManager)paramContext.getSystemService("notification");
        Notification localNotification = new Notification(2130837511, "有单词需要复习~", System.currentTimeMillis());
        localNotification.flags = 16;
        localNotification.setLatestEventInfo(paramContext, "复习提醒", "有单词需要复习~", PendingIntent.getActivity(paramContext, 0, new Intent(paramContext, Main.class), 134217728));
        localNotificationManager.notify(0, localNotification);
        Log.i("receive", "receive");
//        break label39:
//        if (!(((WordList)localArrayList.get(j)).getShouldReview().equals("1")))
//          break;
//        i = 1;
      }
    }
  }
}

/* Location:           E:\Desktop\Android\英语词汇记忆\classes_dex2jar.jar
 * Qualified Name:     wordroid.business.makeNotify
 * JD-Core Version:    0.5.3
 */